package com.vehicle_information_management_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName trip_info
 */
@TableName(value ="trip_info")
@Data
public class TripInfo {

    @TableId(value = "trip_id", type = IdType.AUTO)
    private Integer tripId;


    @TableField(value = "usage_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date usageTime;


    @TableField(value = "vehicle_id")
    private Integer vehicleId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "driver_id")
    private Integer driverId;


    @TableField(value = "trip_reason")
    private String tripReason;


    @TableField(value = "return_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date returnTime;

    @TableField(value = "check_status")
    private Integer checkStatus;

    @TableField(value = "is_processed")
    private Integer isProcessed;

    private DriverInfo driverInfo;

    private VehicleInfo vehicleInfo;

    private UserInfo userInfo;
}
